/**
 * 
 */
package tests.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.UIObject;
import com.google.gwt.user.client.ui.Widget;

/**
 * @author Thien
 *
 */
public class HelloWorld extends Widget {

	private static HelloWorldUiBinder uiBinder = GWT
			.create(HelloWorldUiBinder.class);

	interface HelloWorldUiBinder extends UiBinder<Element, HelloWorld> {
	}

	@UiField SpanElement nameSpan;
	
	public HelloWorld() {
		setElement(uiBinder.createAndBindUi(this));
	}
	
	public void setName(String name) {
		nameSpan.setInnerText(name);
	}

}
